angular.module("bw.config", [])
    .factory("ENV", function() {
        return {
            "version": "1.0.0",
            "name": "bw-th",
            "description": "铁航接送机项目微信端",
            "api": "http://192.168.0.89:8050/api/", //测试接口
            //"api": "http://th-api.bestwise.net:8081/api/", //测试接口
            // "api": "http://th-api.bestwise.net/api/", //正式接口
            "sorket": "http://th-api.bestwise.net/", //websorket 地址  后台推送消息给微信页面
            // 公众号调用接口获取access_token测试凭证
            'grant_type': 'client_credential',
            'appId': 'wxe69910f2a2cfd1a1', //微信测试公众号
            "secret": "f1b5e5b308b515525ffcdd31db07845a", //微信测试公众号
            'scope': 'snsapi_userinfo', //非静默授权，获取用户信息
            'state': '11#wechat_redirect',
            //授权页面
            "wxCallBackUrl": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe69910f2a2cfd1a1&redirect_uri=oauth.html" + "&response_type=code&scope=snsapi_base&state=11#wechat_redirect",
            "baiduMap": {
                "ak": "BORW59HeNs0amhebvmy1qvrwySYgcWDI", //百度地图开发者 web AK
                "service_id": "134558", //服务ID
                "suggestionUrl": "http://api.map.baidu.com/place/v2/suggestion/", //百度地图建议地址 http://lbsyun.baidu.com/index.php?title=webapi/place-suggestion-api
                "trackHistoryUrl": "http://api.map.baidu.com/trace/v2/track/gethistory", //查询某一个监控对象一天之内轨迹接口
                "entityListUrl": "http://api.map.baidu.com/trace/v2/entity/list"
            }
        }
    })